<%@page import="ll.sms.web.*"%><%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="ll.sms.util.*"%>
<%
String currenUser = SmsUtil.sessionHelper(session,AdminProperty.auname);

String s = ParamUtils.getParameter(request,"pl");

if("admin".equals(currenUser)){
	if(s==null || s.trim().equals("")){
	s = SmsConstant.MESSAGE_MONITOR_FLAG;
	}
}else{
	if(SmsConstant.MESSAGE_MONITOR_FLAG.equals(s)){
		return;
	}
	s = SmsUtil.sessionHelper(session,AdminProperty.aid);
	//do nothing
}
int i = 10;
String sz = request.getParameter("sz");
if(sz==null || sz.trim().equals("")){
//do nothing
}else{
try {
	i = Integer.parseInt(sz);
 }catch (Exception e) {
 System.err.println(e.getMessage());
 //do nothing
 }
}
String s_1 = new MessageMonitor(i,s).query(currenUser);
//System.out.println(s_1);
out.print(s_1);
try{
out.flush();
}catch(Exception e){
}
	//String orderStr = null;
	//if (sort != null && !sort.equals("")) {
	//	orderStr = " " + sort + " " + dir + " ";
	//}

	//int total = WebBusinessImpl.getInstance().countTable("sms_waitsend",
	//		null);
	//
	//String conditon = "ORDER BY WACTUALLYSENDTIME DESC";
	//if(!(SmsConstant.ADMIN_TYPE+"").equals(currentUserRank)){
	//	conditon = "WHRER WPROXYID ='"+currentUserId+"' ORDER BY WACTUALLYSENDTIME DESC";
	//}
	//String s = ExtJsonBuilder.toExtJsonString(total, WebBusinessImpl
	//		.getInstance().showWaitList(0, 20,
	//				conditon));
	//response.getWriter().print(s);

%>
